<?php $new_notifications =1; ?>

<div id="top-bar">
	<div class="holder">
		<div class="logo">
			<a href="<?php echo base_url("/home") ?>"><div class="logo"></div></a>
		</div>
		<div class="logout normal-text">
			Welcome, <span class="get-fb-name welcome-text"><?php echo $fb_id; ?></span>! &nbsp
			<?php
				if($new_notifications > 0){
					echo '<span class="new notifications"><a href = "'. base_url("/notification/") .'">'. $new_notifications .' Notification(s)</a></span> &nbsp';
				}
				else{
					echo '<span class="non-new notifications"><a href = "'. base_url("/notification/") .'">'. $new_notifications .' Notification(s)</a></span> &nbsp';
				}
			?>
			<a id="logout-button" href="JavaScript:void(0);" onclick="FB.logout(function(){ top.location.href='<?php echo base_url(); ?>';});"></a>
			<fb:like href="<?php echo base_url(); ?>" width="430" show_faces="false" action="like" colorscheme="light" font="verdana"></fb:like>
		</div>	
		<div class="search">
			<form id="searchform">
				<label for="search">Search:</label><input type="text" name="search" size="35" placeholder = "Search for item" id="search" />
				<input type="submit" value="Submit" name="submit" />
			</form>
		</div>
		<div style="clear: both;"></div>
	</div>
</div>
<div class="horizontal-bar"></div>
